package com.yishun.springboot.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONObject;
import com.yishun.springboot.mapper.RoleMapper;
import com.yishun.springboot.service.RoleService;
import com.yishun.springboot.util.ResultUtils;

@Service
public class RoleServiceImpl implements RoleService {

	@Autowired
	RoleMapper reloDao;

	@Override
	public JSONObject getRolesAll(JSONObject jsonObject) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("isNULL", jsonObject.get("isNULL"));
		map.put("departmentId", jsonObject.get("departmentId"));
		return ResultUtils.jsonSuccess(reloDao.getRolesAll(map));
	}

}
